<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <#include "/common/meta.ftl"/>
	    <#include "/common/form.ftl"/>
<title>反馈查询</title>
<link href="${_b}/static/report/images/swjb_2018.css" rel="stylesheet" type="text/css">

<SCRIPT language=JavaScript>
   function query(){
	   var reportCode = $("#reportCode").val();
	   var captcha = $("#captcha").val();
	   if(reportCode == ""){
	   		alert("请输入查询码");
	   		return;
	   }
	   if(captcha == ""){
	   		alert("请输入验证码");
	   		return;
	   }
	   var url ='./fankuiQuery.html';
		$.post(url, { captcha:captcha,regionCode:reportCode } , function(result) {
			if (result.success) {
				var flag = result.obj.flag;
		      	if(flag == '1'){
		      		location.href = "./returnfankui.html";
		      	}else{
		      		alert(result.obj.msg);
		      		location.reload();
		      	}
			}
		}, 'json');
   	
   }
	function chengyzm(){
		var img = document.getElementById('captchaImg');
		img.src = "${_b}/web/captcha.jpg?" + Math.random();
	 }
</SCRIPT>

</head>

<body>
<form name="form" method="post" action="./fankuiQuery.html">
<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="line3">
  <tr>
    <td height="1000" valign="top"><table width="60%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="230">&nbsp;</td>
      </tr>
    </table>
      <table width="880" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="179" height="552">&nbsp;</td>
          <td width="721" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="lineheight01">反馈查询</td>
            </tr>
          </table>
            <table width="50%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="15%" align="center">
                  	查询码：
               </td>
                <td width="95%" class="lineheight02">
                <input type='text'  name="reportCode" placeholder="请输入验证码" id='reportCode' value = "" style="width:350px"class='form-control' />
                </td>
              </tr>
              <tr>
                <td align="center">
             		   <div style="width:auto;margin-top:20px">验证码：</div>
                </td>
               <td >
	    			<div class="input-group" style="width:250px;margin-top:20px">
						<span class="input-group-addon" >
		  					<i class="icon icon-unlock-alt" style="display:block;width:15px;"></i>
		  				</span>
						<input class="form-control " type="text" id="captcha" name="captcha" value="" placeholder="请输入验证码"/>
						<span class="input-group-addon" style="padding:0px 10px;border-left:0px;">
						<img id="captchaImg" alt="验证码" onclick="chengyzm()" src="${_b}/web/captcha.jpg" style="vertical-align:middle;border-radius:4px;width:80px;cursor:pointer;">
						</span>
					</div>
	    		</td>
              </tr>
            </table>
            <table width="50%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="30">&nbsp;</td>
              </tr>
            </table>
            <table width="100%" style="margin-top:30px" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left"><img src="${_b}/static/report/images/05.jpg" onclick="query()" style="margin-left:100px" width="202" height="40">
                
                </td>
              </tr>
            </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>
